<?php

class TicketTable extends Doctrine_Table
{
  function retrieveTicketsList()
  {
    return TicketQuery::create()->joinProject()->joinCurrentUser()->onlyVisible();
  }
}